package com.qingfeng.medical.biz.information.domain.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.qingfeng.medical.biz.information.domain.ro.BookingRuleRo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 医院信息设置表
 * 
 * @author 清风学Java
 * @date 2023-04-08 23:43:31
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel(description = "医院信息设置保存实体")
public class HospitalInfoSaveDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "医院名")
	@NotBlank(message = "医院名不能为空")
	private String hospName;

	@ApiModelProperty(value = "医院编号")
	@NotBlank(message = "医院编号不能为空")
	private String hospCode;

	@ApiModelProperty(value = "医院logo")
	@NotBlank(message = "医院logo不能为空")
	private String logoUrl;

	@ApiModelProperty(value = "医院联系人")
	@NotBlank(message = "医院联系人不能为空")
	private String contactsName;

	@ApiModelProperty(value = "联系人手机")
	@NotBlank(message = "联系人手机不能为空")
	private String contactsPhone;

	@ApiModelProperty(value = "所处地区的邮编")
	@NotBlank(message = "邮编不能为空")
	private String zipCode;

	@ApiModelProperty(value = "医院地址")
	@NotBlank(message = "医院地址不能为空")
	private String addres;

	@ApiModelProperty(value = "医院路线")
	@NotBlank(message = "医院路线不能为空")
	private String route;

	@ApiModelProperty(value = "医院介绍")
	@NotBlank(message = "医院介绍不能为空")
	private String hospContent;

	@ApiModelProperty(value = "系统预约挂号规则介绍")
	@TableField(typeHandler = JacksonTypeHandler.class)
	@NotNull(message = "系统预约规则不能为空")
	private BookingRuleRo bookingRule;

}
